#include <iostream>
#include "CLI11.hpp"

int main(int argc, char **argv) {
    CLI::App app{"App description"};

    // Define options
    int p = 0;
    app.add_option("-p", p, "Parameter");

    std::string file{"test.ini"};
    //app.add_option("-f,--file", file, "Require an existing file")->required()->check(CLI::ExistingFile);

    app.set_config("--config", file);
    app.allow_config_extras(true);

    {
        std::ofstream out{file};
        out << "three=3" << std::endl;
        out << "two=99" << std::endl;
    }

    int two{0};
    app.add_option("--two", two);

    CLI11_PARSE(app, argc, argv);

    std::cout <<"two: "<< two << std::endl;

    return 0;
}